<div class="blade-content ng-scope" id="blade-content">
  <div class="blade-inner">
    <div class="inner-block">
      <form name="form" class="form" [formGroup]="formGroup" novalidate>
        <div class="blade-static __bottom" *ngIf="currentBlade.isNew">
          <button class="btn" [disabled]="!formGroup.valid">创建</button>
        </div>
        <div class="form-group">
          <!-- <label class="form-label">配置名称</label> -->
          <div class="form-input">
             <input class="name" name="alarmConfigDesc" formControlName="alarmConfigDesc" readonly> 
          </div>
          <div *ngIf="formErrors.alarmConfigDesc" class="form-error">
            {{ formErrors.alarmConfigDesc }}
          </div>
        </div>

        <div class="form-group " *ngIf="!isNum">
          <label class="form-label">配置</label>
          <div class="form-input" id="form-input-switch">
            <label class="form-label __switch">
                  <input type="checkbox" name="alarmConfigValue" formControlName="alarmConfigValue" class="ng-pristine ng-untouched ng-valid">
                  <span class="switch"></span>
              </label>
          </div>
        </div>

        <div class="form-group" *ngIf="isNum">
          <label class="form-label">配置</label>
          <div class="form-input" id="form-input-switch">
            <input type="number" name="alarmConfigValue" formControlName="alarmConfigValue" min="1"><span class="s">(s)</span>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>